/**
 *	知识管理路由配置
 *  分模块管理路由
 **/
export default [
  {
    path: "/resultAnalyse",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/resultAnalyse/modelManagement",
    meta: {
      title: "结果分析",
      icon: "icon-shuju1",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "reultManagement",
        component: () => import("@/views/resultAnalyse/reultManagement.vue"),
        meta: {
          title: "结果管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "reultManagementList",
        component: () =>
          import("@/views/resultAnalyse/reultManagementList.vue"),
        name: "reultManagementList",
        hidden: true,
        meta: {
          title: "结果列表",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/resultAnalyse/reultManagement",
        },
      },
      {
        path: "reportGeneration",
        component: () => import("@/views/resultAnalyse/reportGeneration.vue"),
        name: "reportGeneration",
        meta: {
          title: "报告生成",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "reportdlhistory",
        component: () => import("@/views/resultAnalyse/reportdlhistory.vue"),
        name: "reportdlhistory",
        hidden: true,
        meta: {
          title: "报告生成-历史记录",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/resultAnalyse/reportGeneration",
        },
      },
      {
        path: "modelManagement",
        component: () => import("@/views/resultAnalyse/modelManagement.vue"),
        name: "modelManagement",
        meta: {
          title: "模型管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "modelManagementHistory",
        component: () =>
          import("@/views/resultAnalyse/modelManagementHistory.vue"),
        name: "modelManagementHistory",
        hidden: true,
        meta: {
          title: "历史应用结果查看",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/resultAnalyse/modelManagement",
        },
      },
    ],
  },
  {
    path: "/caseResultRec",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/caseResultRec/intelligenceRec",
    meta: {
      title: "用例及工具推荐",
      icon: "icon-gongju",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "intelligenceRec",
        component: () => import("@/views/caseResultRec/intelligenceRec.vue"),
        meta: {
          title: "智能推荐",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      // {
      //   path: "intelligenceRecAndCaseToolRec",
      //   component: () =>
      //     import("@/views/caseResultRec/intelligenceRecAndCaseToolRec.vue"),
      //   name: "intelligenceRecAndCaseToolRec",
      //   hidden: true,
      //   meta: {
      //     title: "智能推荐-用例及工具推荐",
      //     roles: ["superAdmin", "commonAdmin"],
      //     activeMenu: "/caseResultRec/intelligenceRec",
      //   },
      // },
      {
        path: "intelligenceRecDetail",
        component: () =>
          import("@/views/caseResultRec/intelligenceRecDetail.vue"),
        name: "intelligenceRecDetail",
        hidden: true,
        meta: {
          title: "查看推荐-详情",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/caseResultRec/intelligenceRec",
        },
      },
      {
        path: "modelManagement",
        component: () => import("@/views/caseResultRec/modelManagement.vue"),
        name: "modelManagement",
        meta: {
          title: "模型管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "modelManagementDetail",
        component: () =>
          import("@/views/caseResultRec/modelManagementDetail.vue"),
        name: "modelManagementDetail",
        hidden: true,
        meta: {
          title: "验证结果查看",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/caseResultRec/modelManagement",
        },
      },
    ],
  },
  {
    path: "/repaireSchemeRec",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/repaireSchemeRec/unusualAnalyseRecord",
    meta: {
      title: "修复方案推荐",
      icon: "icon-biaoji",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "unusualAnalyseRecord",
        component: () =>
          import("@/views/repaireSchemeRec/unusualAnalyseRecord.vue"),
        meta: {
          title: "异常分析",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      // {
      //   path: "unusualAnalyse",
      //   component: () => import("@/views/repaireSchemeRec/unusualAnalyse.vue"),
      //   name: "unusualAnalyse",
      //   hidden: true,
      //   meta: {
      //     title: "异常分析",
      //     roles: ["superAdmin", "commonAdmin"],
      //     activeMenu: "/repaireSchemeRec/unusualAnalyseRecord",
      //   },
      // },
      {
        path: "unusualAnalyseDetail",
        component: () =>
          import("@/views/repaireSchemeRec/unusualAnalyseDetail.vue"),
        name: "unusualAnalyseDetail",
        hidden: true,
        meta: {
          title: "异常分析详情",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/repaireSchemeRec/unusualAnalyseRecord",
        },
      },
      {
        path: "intelligenceRec",
        component: () => import("@/views/repaireSchemeRec/intelligenceRec.vue"),
        meta: {
          title: "智能推荐",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "repaireSchemeRec",
        component: () =>
          import("@/views/repaireSchemeRec/repaireSchemeRec.vue"),
        name: "repaireSchemeRec",
        hidden: true,
        meta: {
          title: "修复方案推荐",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/repaireSchemeRec/intelligenceRec",
        },
      },
      // {
      //   path: "repaireSchemeRec2",
      //   component: () =>
      //     import("@/views/repaireSchemeRec/repaireSchemeRec2.vue"),
      //   name: "repaireSchemeRec2",
      //   hidden: true,
      //   meta: {
      //     title: "修复方案推荐2",
      //     roles: ["superAdmin", "commonAdmin"],
      //     activeMenu: "/repaireSchemeRec/intelligenceRec",
      //   },
      // },
      {
        path: "modelManagement",
        component: () => import("@/views/repaireSchemeRec/modelManagement.vue"),
        meta: {
          title: "模型管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "modelManagementResultCheck",
        component: () =>
          import("@/views/repaireSchemeRec/modelManagementResultCheck.vue"),
        name: "modelManagementResultCheck",
        hidden: true,
        meta: {
          title: "模型管理-验证结果的查看",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/repaireSchemeRec/modelManagement",
        },
      },
    ],
  },
  {
    path: "/qualityEvaluation",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/qualityEvaluation/qualityEvaluate",
    meta: {
      title: "质量评估优选",
      icon: "icon-wenjian",
      roles: ["superAdmin", "commonAdmin"],
    },
    children: [
      {
        path: "qualityEvaluate",
        component: () =>
          import("@/views/qualityEvaluation/qualityEvaluate.vue"),
        meta: {
          title: "质量评价",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "qualityCompare",
        component: () => import("@/views/qualityEvaluation/qualityCompare.vue"),
        meta: {
          title: "质量对比",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "qualityEvaluateDetail",
        component: () =>
          import("@/views/qualityEvaluation/qualityEvaluateDetail.vue"),
        name: "qualityEvaluateDetail",
        hidden: true,
        meta: {
          title: "质量评价-详情",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/qualityEvaluation/qualityEvaluate",
        },
      },
      {
        path: "qualityCompareDetail",
        component: () =>
          import("@/views/qualityEvaluation/qualityCompareDetail.vue"),
        name: "qualityCompareDetail",
        hidden: true,
        meta: {
          title: "质量对比-详情",
          roles: ["superAdmin", "commonAdmin"],
          activeMenu: "/qualityEvaluation/qualityCompareDetail",
        },
      },
      {
        path: "effectiveness",
        component: () => import("@/views//qualityEvaluation/effectiveness.vue"),
        meta: {
          title: "效能评估",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
      {
        path: "modelManagement",
        component: () =>
          import("@/views//qualityEvaluation/modelManagement.vue"),
        meta: {
          title: "模型管理",
          roles: ["superAdmin", "commonAdmin"],
        },
      },
    ],
  },
];
